package com.gdcp.service;

import com.gdcp.beans.News;
import com.gdcp.util.ImageDto;

import java.util.List;
import java.util.Map;

public interface NewsService {
    Map<String, Object> findPageBreakByCondition(Map<String, Object> model);

    Map<String, Object> insert(News news, ImageDto coverImage);

    Map<String, Object> updateInformation(News news, ImageDto coverImage);

    Map<String, Object> insert(News news);

    Map<String, Object> updateInformation(News news);

    News getInformation(Integer id);

    Map<String, Object> removeByPrimaryKey(Integer[] ids);

    Map<String, Object> searchInformation(Map<String, Object> param);

    List<News> queryByLimit();

    void updateLooks(Integer news_id);

}
